package com.eedi.framework.permission.dal.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eedi.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户和角色关联
 *
 */
@TableName("sys_user_role")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysUserRoleDO extends BaseDO {

    @TableId(type = IdType.ASSIGN_UUID)
    private String sysUserRoleId;

    /**
     * 用户 ID
     */
    private String sysUserId;
    /**
     * 角色 ID
     * 关联 {@link SysRoleDO#getSysRoleId()} ()} ()}
     */
    private String sysRoleId;

}
